package bomberman.util;


/**
 * 全局静态变量
 * @author EX-FUHUICHAO001
 * 2016年9月22日12:05:04
 */
public class Constants {

	// 定义窗口尺寸
	public static int WINDOW_WIDTH = 6+450+300;
	public static int WINDOW_HEIGHT = 28+270+180;
	
	// 定义窗口出现位置
	public static int WINDOW_LOCATION_X = 100;
	public static int WINDOW_LOCATION_Y = 100;
	
	// 定义游戏名
	public static String GAME_NAME = "BomberMan 1.0 create by ahoi";
	
	// 定义游戏面板name
	public static String PANEL_INDEX = "panelIndex";
	
	// 定义人物移动速度
	public static int SPEED = 2;
	// 定义敌人移动速度
	public static int SPEED_ENEMY = 1;
	// 定义敌人移动距离
	public static int LENGTH_ENEMY = 10;
	
	// 定义移动方向
	public final static char MOVE_DOWN = 'D';
	public final static char MOVE_UP = 'U';
	public final static char MOVE_LEFT = 'L';
	public final static char MOVE_RIGHT = 'R';
	public final static char[] MOVE_DIRECTION = {MOVE_DOWN, MOVE_UP, MOVE_LEFT, MOVE_RIGHT};
	
	// 定义任务上下左右移动是否停止
	public static boolean DOWN = false;
	public static boolean UP = false;
	public static boolean LEFT = false;
	public static boolean RIGHT = false;
	
	// 定义敌人表情
	public final static int ENEMY_STYLE_NORMAL = 0;
	public final static int ENEMY_STYLE_DIE = 1;
	
	// 定义炸弹大小
	public final static int BOM_SIZE_BIG = 0;
	public final static int BOM_SIZE_MIDDLE = 1;
	public final static int BOM_SIZE_SMALL = 2;
	
	// 定义炸弹个数
	public static int BOM_NUMBER = 11;
	
	// 定义火焰长度
	public static int FLAME_LENGTH = 1;
	
	// 定义火焰粗细
	public final static int FLAME_SIZE_BIG = 0;
	public final static int FLAME_SIZE_MIDDLE = 1;
	public final static int FLAME_SIZE_SMALL = 2;
	public final static int FLAME_SIZE_SSMALL = 3;
	
	// 定义砖头爆炸效果
	public final static int BOOM_SIZE_BIG = 0;
	public final static int BOOM_SIZE_MIDDLE = 1;
	public final static int BOOM_SIZE_SMALL = 2;
	
	// 定义火焰为水平  或  竖直  或  交叉
	public final static int FLAME_STYLE_HORIZ = 0;
	public final static int FLAME_STYLE_VERTI = 1;
	public final static int FLAME_STYLE_MIX = 2;
	
	// 定义道具样式
	public static int PROPERTY_STYLE_LONGER_FLAME = 0;
	public static int PROPERTY_STYLE_MORE_BOM = 1;
	public static int PROPERTY_STYLE_FASTER_MAN = 2;
	public static int PROPERTY_STYLE_CONTROL_BOM = 3;
	public static int PROPERTY_STYLE_THROUGH_WALL = 4;
	public static int PROPERTY_STYLE_THROUGH_BOM = 5;
	public static int PROPERTY_STYLE_DOOR = 6;
	
	// 定义各种道具数量上限
	public static int[] PROPERTY_MAX_SIZE = {1, 1, 1, 1, 1, 1, 1};
	
	// 定义各种道具数量
	public static int[] PROPERTY_SIZE = {0, 0, 0, 0, 0, 0, 0};
	
	// 定义道具出现概率 (0, 1)开区间
	public static double PROPERTY_RANDOM_PERCENT = 0.2;
	
	// 定义地图刷新间隔时间
	public static int MAP_SLEEP_TIME = 10;
	
	// 定义人物移动间隔时间
	public static int MAN_SLEEP_TIME = 20;
	
	// 定义炸弹延时爆炸时间
	public static int BOM_SLEEP_TIME = 2500;

	// 定义炸弹大小变化间隔时间
	public static int BOM_CHANGE_SLEEP_TIME = 300;
	
	// 定义爆炸效果消失时间
	public static int BOOM_SLEEP_TIME = 450;
	
	// 定义爆炸效果大小变化间隔时间
	public static int BOOM_CHANGE_SLEEP_TIME = 150;
	
	// 定义火焰消失时间
	public static int FLAME_SLEEP_TIME = 600;
	
	// 定义火焰大小变化间隔时间
	public static int FLAME_CHANGE_SLEEP_TIME = 187;
	
	// 定义敌人移动间隔时间
	public static int ENEMY_MOVE_SLEEP_TIME = 30;
	
}
